package haltica.com.mx.ape.domain;

import java.util.Set;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "perfil_role")
public class PerfilRole {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "PERFIL_ROLE", columnDefinition = "VARCHAR", length = 15)
    private String perfilRole;

    @OneToMany(mappedBy = "perfilRole")
    private Set<UsuarioSistema> usuarioSistemas;

    @Column(name = "DESCRIPCION", columnDefinition = "VARCHAR", length = 80)
    private String descripcion;
}
